package com.endurance.controller;

import com.endurance.clients.DemosClient;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: spring-cloud-hoxton-parent
 * @Package: com.endurance.controller
 * @ClassName: DemoController
 * @Description:
 * @Author: sunlin
 * @CreateDate: 2024/02/06 20:40
 * @Version: 1.0
 */

@RestController
@RequestMapping("/tests")
public class DemoController {

    @Autowired
    private DemosClient demosClient;


    @GetMapping
    public String test() {
        System.out.println("test ok!!!");
        demosClient.demos();
        return "test ok!!!";
    }


}
